<?

//print_r($naeste_session);


?>
<form action="<?php echo base_url();?>core/opret/ny/kampagne" method="post">
<h1 class="rubrik">Opret ny kampagne</h1>
<input  style="float:right;" type="submit" class="terninger" name="" value=" " title="Opret ny kampagne"/><p class="ink" style="margin-top:5px;">En kampagne er en række sammenhængende rollespilsessioner. Kampagnens hovedpersoner er i reglen også de samme fra session til session ligesom det overordnede plot.</p>
<? 

  $ny_session_nummer = $naeste_session + 1;

?>

	

<!--input type="hidden" name="kampagne_id" value="<? echo $kampagne; ?>"/>
<input type="hidden" name="nummer" value="<? echo $ny_session_nummer; ?>"/-->

<b class="rubrik">Navn:</b>
<input type="text" name="navn" value=""/>


<div style="margin-top:5px;padding:10px;background:#FEFFF6;border:solid 1px #BEBAA0;overflow:auto;">

	<h3 class="rubrik">Tid</h3>
	
		<p class="rubrik" style="font-weight:bold;">Ingame start:</p>

		<? 	$birthdata = array (
				"dag" => "dag",
				"maaned" => "maaned",
				"aar" => "aar",
				"alder" => "alder",
				"time" => "time",																
				"minut" => "minut",				
			);
		$this->load->view('forms/tid_ny',$birthdata); ?><input type="checkbox" name="birth" value="check"> uvidst

		<br><br>

		<p class="rubrik" style="font-weight:bold;">Ingame slut:</p>

		<? 	$deathdata = array (
				"dag" => "dag_2",
				"maaned" => "maaned_2",
				"aar" => "aar_2",
				"alder" => "alder_2",
				"time" => "time_2",																
				"minut" => "minut_2",				
			);
		
			$this->load->view('forms/tid_ny',$deathdata); ?><input id="death_disable" type="checkbox" name="death" value="check"> uvidst / ikke endnu
	
<br>

	<p class="rubrik" style="font-weight:bold;">Offgame</p>
	<p>	
		<b></b>

		<?
			$offgame_data = array (
				"dag" => "dag_offgame",
				"maaned" => "maaned_offgame",
				"aar" => "aar_offgame",
				"alder" => "alder_game",
				"time" => "time_offgame",																
				"minut" => "minut_offgame",				
			);
				
		
		 $this->load->view('forms/tid_offgame',$offgame_data); ?>

	</p>
</div>
<div style="margin-top:5px;padding:10px;background:#FEFFF6;border:solid 1px #BEBAA0;">
<h2 class="rubrik">Vælg Gamemaster(s)</h2>
<?
$alle_deltager = $this->rollespiller_model->find_alle_deltagere();
//print_r($alle_deltager);
//echo "<p class='fake_link_ink' id='pot_gm_link'>Eksisterende deltagere</p>";
echo "<div id='pot_gm'>";

	foreach($alle_deltager as $d) {
		echo "<p class='rubrik'><input type='checkbox' value='".$d['id']."'> ".anchor("deltager/profil/".$d['id'],$d['navn'],"class='rubrik'")."</p>";
		
	}
echo "</div>";

?>
<input type="hidden" id="gms_append" name="gms" value="">

</div>


<input type="hidden" name="aktion" value="opret">
</form>
<? ?>
